package blazingbubble.lobby.command.net;

import moltencore.network.protocol.GameListRequest;
import spark.network.NetworkConnection;
import spark.network.Sender;
import blazingbubble.command.NetworkCommand;
import blazingbubble.graphics.lobby.IGameListUpdateListener;
import blazingbubble.lobby.command.GameListRequestCommand;

public class NetGameListRequestCommand extends GameListRequestCommand {
	private NetworkCommand networkCommand;
	
	public NetGameListRequestCommand(Sender sender, NetworkConnection serverConnection) {
		networkCommand = new NetworkCommand(sender, serverConnection);
	}
	
	@Override
	public void requestGameList() {
		GameListRequest packet = new GameListRequest();
		networkCommand.send(packet);
	}
}
